/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUInemeanshop;

import components.NLabel;
import components.NPanel;
import java.awt.GridLayout;
import nemeanshop.NemeanShop;

/**
 *
 * @author havardaxelsen
 */
public class GUIStatistics extends NPanel{
    
    private NLabel antallsalg   = new NLabel("Antall salg: ");
    private NLabel antsalg      = new NLabel("42");
    private NLabel profitt      = new NLabel("Profitt: ");
    private NLabel profittall   = new NLabel("2000,-");
    private NLabel toppselger   = new NLabel("Mest solgt: ");
    private NLabel navn         = new NLabel("Hans Terje");
    private NLabel tjent        = new NLabel("har tjent ");
    private NLabel sum          = new NLabel("1000,-");
    
    
    private NemeanShop ns;
    
    public GUIStatistics(NemeanShop ns){
        this.ns = ns;
        this.setLayout(new GridLayout(4,2));
        this.add(antallsalg);
        profittall.setText(""+ns.getProfit());
        add(antsalg);
        add(profitt);
        add(profittall);
        add(toppselger);
        add(navn);
        add(tjent);
        add(sum);
    }
    
}
